/*
 * Created by SharpDevelop.
 * User: Tanya
 * Date: 01.07.2007
 * Time: 17:23
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Drawing;
using System.Windows.Forms;

namespace Gladkikh.Sims2.Combiner
{
	/// <summary>
	/// Description of SplashScreen.
	/// </summary>
	public partial class SplashScreen : Form
	{
		public SplashScreen()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			this.BackgroundImage = Gladkikh.Sims2.Combiner.Properties.Resources.logo_5;
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		public void CloseIt()
		{
			timer1.Enabled = true;
		}
		
		void Timer1Tick(object sender, EventArgs e)
		{
			
			this.Opacity -= 0.05;
			this.Location = new Point(this.Location.X, this.Location.Y - 1);
			if(this.Opacity == 0)
				this.Close();
			
			Application.DoEvents();
			
		}
	}
}
